# run:
# python meinheld-test.py
           
from meinheld import server
import time
           
def hello_world(environ, start_response):
    time.sleep(1)
    status = '200 OK'
    res = "Hello world."
    response_headers = [('Content-type','text/plain')]
    start_response(status, response_headers)
    return [res]
           
server.listen(("0.0.0.0", 9090))
server.run(hello_world)
